import request from '@/utils/request'

export function listrepairHead(query) {
  return request({
    url: '/fault/repairHead/list',
    method: 'get',
    params: query
  })
}

export function createrepairHead(data) {
  return request({
    url: '/fault/repairHead/create',
    method: 'post',
    data
  })
}

export function readrepairHead(data) {
  return request({
    url: '/fault/repairHead/get/' + data.id,
    method: 'get'
  })
}

export function updaterepairHead(data) {
  return request({
    url: '/fault/repairHead/update',
    method: 'post',
    data
  })
}

export function deleterepairHead(data) {
  return request({
    url: '/fault/repairHead/delete/' + data.fbillno,
    method: 'delete'
  })
}

export function userlist(query) {
  return request({
    url: '/data/area/getList/',
    method: 'get',
    params: query
  })
}


export function createDispatch(query) {
  return request({
    url: '/phone/takeOrdersRepairHead/',
    method: 'get',
    params: query
  })
}